﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using XCI.Windows;
using XCI.Windows.Forms;

namespace _8.test
{
    public partial class Form3 : FrmBase
    {
        WidgetManage widgetManage;
        public Form3()
        {
            InitializeComponent();
        }

        private void Form3_Load(object sender, EventArgs e)
        {
            widgetManage = new WidgetManage(widgetView1, "home");
            widgetManage.Load();
        }

        private void Form3_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.F12)
            {
                widgetManage.Save();
                widgetManage.Design();
                widgetManage.Load();
            }
        }
    }
}
